{include file='_header'}
<div class="page-header">
    当前位置：<span class="text-primary">商城设置</span>
</div>
<div class="page-content">
    <form action="" method="post" class="form-horizontal form-validate" enctype="multipart/form-data" >
        <div class="form-group">
            <label class="col-lg control-label must">商户名称</label>
            <div class="col-sm-8">
                <input type="text" class="form-control" name="merchname" value="{$item['merchname']}" data-rule-required="true"/>
                <div class="form-control-static">{$item['merchname']}</div>
            </div>
        </div>
        <div class="form-group">
            <label class="col-lg control-label">商户logo</label>
            <div class="col-sm-9 col-xs-12">
                {:tpl_form_field_image2('logo',$item['logo'])}
                <span class="help-block">商户logo 建议尺寸 300 * 300</span>
            </div>
        </div>
        <div class="form-group">
            <label class="col-lg control-label">店招</label>
            <div class="col-sm-9 col-xs-12">
                {:tpl_form_field_image2('banner',$item['banner'])}
                <span class="help-block">商城首页店招，建议尺寸640*450</span>
            </div>
        </div>
        <div class="form-group">
            <label class="col-lg control-label must">主营项目</label>
            <div class="col-sm-8">
                <input type="text" class="form-control" name="salecate" value="{$item['salecate']}" data-rule-required="true"/>
            </div>
        </div>
        <div class="form-group">
            <label class="col-lg control-label must">联系人</label>
            <div class="col-sm-8">
                <input type="text" class="form-control" name="realname" value="{$item['realname']}" data-rule-required="true"/>
            </div>
        </div>
        <div class="form-group">
            <label class="col-lg control-label must">联系电话</label>
            <div class="col-sm-8">
                <input type="tel" class="form-control" name="mobile" value="{$item['mobile']}" data-rule-required="true"/>
            </div>
        </div>
        <div class="form-group">
            <label class="col-lg control-label">商户简介</label>
            <div class="col-sm-8">
                <textarea name="desc1" class="form-control">{$item['desc']}</textarea>
            </div>
        </div>
        <div class="form-group">
            <label class="col-lg control-label">商户地址</label>
            <div class="col-sm-9 col-xs-12">
                <input type="text" name="address" class="form-control" value="{$item['address']}" />
            </div>
        </div>
        <div class="form-group">
            <label class="col-lg control-label">商户电话</label>
            <div class="col-sm-9 col-xs-12">
                <input type="text" name="tel" class="form-control" value="{$item['tel']}" />
            </div>
        </div>
        <div class="form-group">
            <label class="col-lg control-label">商户位置</label>
            <div class="col-sm-9 col-xs-12">
                {:tpl_form_field_position('map',array('lng'=>$item['lng'],'lat'=>$item['lat']))}
            </div>
        </div>
        <div class="form-group">
            <label class="col-lg control-label"></label>
            <div class="col-sm-9 col-xs-12">
                    <input type="submit" value="提交" class="btn btn-primary"  />
             </div>
        </div>
    </form>
</div>


{include file='_footer'}     